﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SharingCenter.Web.Mod.Groups
{
    using SharingCenter.Web.Classes;
    using SharingCenter.Web.Classes.Groups;
    public partial class MyGroups : GroupsPageBase
    {
        protected void Page_Init(object sender, EventArgs e)
        {
            BindMyAdminedGroupList();
            BindGroupList();
        }

        private void BindGroupList()
        {
            ListView1.DataSource = GroupOperations.GetGroupsByUserId(Profile.UserId);
            ListView1.DataBind();
        }

        protected void BindMyAdminedGroupList()
        {
            lvMyAdminedGroupList.DataSource = dataContext.GetGroupsByAdminUserId(Profile.UserId);
            lvMyAdminedGroupList.DataBind();
        }
           

        protected void Page_Load(object sender, EventArgs e)
        {
            
        }
    }
}
